package com.example.myapplication.ui.home;

import com.google.gson.annotations.SerializedName;

public class Course {
    @SerializedName("id")
    private String id;

    @SerializedName("imageUrl")
    private String imageUrl;

    @SerializedName("title")
    private String title;

    @SerializedName("instructor")
    private String instructor;

    @SerializedName("difficulty")
    private String difficulty;

    @SerializedName("rating")
    private float rating;

    @SerializedName("detailUrl")
    private String detailUrl;

    public Course(String id, String imageUrl, String title, String instructor,
                  String difficulty, float rating, String detailUrl) {
        this.id = id;
        this.imageUrl = imageUrl;
        this.title = title;
        this.instructor = instructor;
        this.difficulty = difficulty;
        this.rating = rating;
        this.detailUrl = detailUrl;
    }

    // Getters
    public String getId() { return id; }
    public String getImageUrl() { return imageUrl; }
    public String getTitle() { return title; }
    public String getInstructor() { return instructor; }
    public String getDifficulty() { return difficulty; }
    public float getRating() { return rating; }
    public String getDetailUrl() { return detailUrl; }
}
